<?php

namespace App\Http\Controllers;

use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    /**
     * 展示给定用户的信息。
     *
     * @param  int  $id
     * @return Response
     */
    public function index($id)
    {
		//$users = DB::select('select * from dsc_users where user_id = ?', [1]);
		$users = DB::table('users')->where('user_id', $id)->get();
        $users = get_object_vars($users[0]);
		var_dump($users);
		return $id;
        //return view('user.profile');
    }
}